<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <title>水真汽助手</title>
    <!-- <meta http-equiv="Content-Security-Policy" content="script-src 'self' https://api.bilibili.com"> -->
  </head>
  <body>
    <div class="container">
      <a href="options.html" class="settings-icon">⚙️</a>
      <div class="title">
        <a
          href="https://space.bilibili.com/3546676667091128"
          target="_blank"
          style="text-decoration: none; color: #fb7299"
          title="关注李滇滇谢谢喵"
          >水真汽评论申诉助手</a
        >
      </div>

      <!-- <div>
          <el-button
            id="checkCommentBtn"
            disabled="true"
            class="btn"
            @click="checkComment"
            >检查评论状态</el-button
          >
          <div class="status-container">
            <div id="commentStatus" class="status"></div>
          </div>
        </div> -->

      <!-- <div class="divider"></div> -->

      <div>
        <div style="margin-bottom: 5px">所在稿件BV号或位置链接：</div>
        <input
          type="text"
          style="width: 100%"
          id="appealLink"
          placeholder="请输入稿件bv号或位置链接"
        />
        <div style="margin-bottom: 5px">申诉理由：</div>
        <textarea
          minlength="10"
          id="appealReason"
          placeholder="请输入申诉理由，至少10个字"
        ></textarea>
        <div id="charCount" class="char-count">
          已输入
          <span id="currentCount"></span> 字，最少需要10字
        </div>
      </div>

      <button id="submitAppealBtn" disabled class="btn">提交申诉</button>

      <div id="appealResult" class="appeal-result"></div>

      <script src="js/po.js"></script>
      <div id="remark" style="color: #9499a0">
        点击提交申诉 提示“申诉提交成功”则说明申诉成功<br />
        提示“该bv号或链接下无可申诉评论”则说明当前视频或动态评论未被举报
        <br />
        提示“申诉提交已达当日上限”则说明到达24小时可申诉3条评论上限(幽默陈睿)
      </div>
    </div>
  </body>

  <style>
    body {
      width: 360px;
      padding: 15px;
      font-family: "Microsoft YaHei", sans-serif;
    }
    .container {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    .title {
      text-decoration: none;
      font-size: 18px;
      font-weight: bold;
      color: #fb7299;
      text-align: center;
      margin-bottom: 10px;
    }
    .status-container {
      margin-top: 10px;
    }
    .status {
      margin-top: 5px;
      padding: 5px;
      border-radius: 4px;
      display: none;
    }
    .status.error {
      display: block;
      color: #f56c6c;
      background-color: #fef0f0;
    }
    .status.success {
      display: block;
      color: #67c23a;
      background-color: #f0f9eb;
    }
    .settings-icon {
      text-decoration: none;
      position: absolute;
      top: 20px;
      right: 15px;
      font-size: 18px;
      cursor: pointer;
      color: #9499a0;
    }
    .btn {
      background-color: #fb7299;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
    }
    .btn:hover {
      background-color: #fc8bab;
    }
    .btn:disabled {
      background-color: #ccc;
      cursor: not-allowed;
    }
    textarea {
      width: 100%;
      height: 100px;
      padding: 8px;
      border: 1px solid #dcdfe6;
      border-radius: 4px;
      resize: none;
      font-family: "Microsoft YaHei", sans-serif;
    }
    .char-count {
      text-align: right;
      font-size: 12px;
      color: #909399;
    }
    .char-count.error {
      color: #f56c6c;
    }
    .divider {
      height: 1px;
      background-color: #ebeef5;
      margin: 10px 0;
    }
    .appeal-result {
      margin-top: 10px;
      padding: 10px;
      border-radius: 4px;
      display: none;
    }
    .appeal-result.success {
      display: block;
      color: #67c23a;
      background-color: #f0f9eb;
    }
    .appeal-result.error {
      display: block;
      color: #f56c6c;
      background-color: #fef0f0;
    }
  </style>
</html>
